# 课本项目
# 第一个例子
# phrase = "Don't panic!"
# plist = list(phrase)
# print(plist)
# for i in range(4): # 循环四次删除末尾的四个字符
#     plist.pop()
# print(plist)
# plist.remove("D")  #删除字母D
# print(plist)
# plist.pop(2)
# print(plist)
# plist.extend([plist.pop(),plist.pop()])
# plist.insert(2,plist.pop(3))
# print(plist)
# new_phrase = "".join(plist)
# print(new_phrase)

# 第二个例子
book = "The Hitchhiker's Guide to the Galaxy"
booklist = list(book)
booklist


